//package org.edu.spring.aop.aspect;
//
//
//import org.apache.log4j.Logger;
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Before;
//import org.aspectj.lang.annotation.Pointcut;
//import org.springframework.stereotype.Component;
//
///**
// * 系统服务组件Aspect切面Bean
// * @author lenove-x
// * @date 2013-5-28
// */
////声明这是一个组件
//@Component
////声明这是一个切面Bean
//@Aspect
//public class ActionAspect {
//	private static final Logger logger= Logger.getLogger(ActionAspect.class);
//	
//	//execution(* com.savage.server..*.*(..))
//	//通配SessionListener 
//	@Pointcut("execution(* org.edu.common.listener.SessionListener.*(..))")
//	public void write(){}
//
//	
//	
//	/*
//	 * 配置前置通知,使用在方法aspect()上注册的切入点
//	 * 同时接受JoinPoint切入点对象,可以没有该参数
//	 */
//	@Before("write()")
//	public void before(JoinPoint joinPoint){
//		//System.out.println(joinPoint.getSignature());
////		System.out.println(joinPoint.getKind());
////		System.out.println(joinPoint.getSourceLocation());
////		Object[] args = joinPoint.getArgs(); 
////		 for (int i=0; i<args.length; i++) {
////			   System.out.println(args[i]);
////			  }
////		 //throw new TestException("终止");
////		ActionContext act= ActionContext.getContext();
////		Map<String,Object> session= act.getSession();
//		System.out.println("method " + joinPoint.getTarget().getClass().getName() + "." + joinPoint.getSignature().getName() + " throw exception");  
//		System.out.println(1);
//		 logger.info("before " + joinPoint);
//		
//	}
//}
